/*
 * @Author: Charlie/彭旺
 * @email: 413157399@qq.com
 * @Date: 2022-06-17 15:40:26
 */
import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/yxUser',
    method: 'post',
    data
  })
}

export function del(uid) {
  return request({
    url: 'api/yxUser/' + uid,
    method: 'delete'
  })
}

export function edit(data) {
  return request({
    url: 'api/yxUser',
    method: 'put',
    data
  })
}

export function onStatus(id, data) {
  return request({
    url: 'api/yxUser/onStatus/' + id,
    method: 'post',
    data
  })
}

export function editp(data) {
  return request({
    url: 'api/yxUser/money',
    method: 'post',
    data
  })
}

export function getMember(params) {
  return request({
    url: 'api/manage-aggregation/member/queryMemberPage',
    method: 'get',
    params
  })
}

export function updateById(data) {
  return request({
    url: 'api/manage-aggregation/member/updateById',
    method: 'post',
    data
  })
}

export function firstmenber(params) {
  return request({
    url: 'api/manage-aggregation/member/getLower',
    method: 'get',
    params
  })
}

export function imgurl(id) {
  return request({
    url: 'api/file-center/open/file/preview?id=' + id,
    method: 'get'
  })
}
export function uploadimg(data) {
  return request({
    url: 'api/file-center/open/file/upload',
    method: 'post',
    data
  })
}

export function modifyHead(fileId) {
  return request({
    url: 'api/manage-aggregation/users/updateAvatar?fileId=?' + fileId,
    method: 'post'
  })
}

export function secondLevelMenber(params) {
  return request({
    url: 'api/manage-aggregation/member/getTwoLower',
    method: 'get',
    params
  })
}

export function querySysAccLog(data) {
  return request({
    url: 'api/manage-aggregation/integral/querySysAccLog',
    method: 'post',
    data
  })
}

export function vipIntegralDetail(data) {
  return request({
    url: 'api/manage-aggregation/integral/queryMemAccLog',
    method: 'post',
    data
  })
}

